#!/bin/bash

echo "启动 Android Retrace 日志解析工具..."

echo ""
echo "1. 安装 Go 依赖..."
go mod tidy

echo ""
echo "2. 安装前端依赖..."
cd web
npm install

echo ""
echo "3. 构建前端..."
npm run build

echo ""
echo "4. 启动后端服务..."
cd ..
go run main.go
